<?php
$search_items_config = array(
    'key'         =>array('type'=>'comp-text','name'=>'key','title'=>'关键字','clearable'=>true),
    'match'         =>array('type'=>'comp-text','name'=>'match','title'=>'关键字','clearable'=>true),
    'compName'    =>array('type'=>'comp-text','name'=>'compName','title'=>'客户名称','clearable'=>true),
    'kuweiName'   =>array('type'=>'comp-text','name'=>'kuweiName','title'=>'库位名称','clearable'=>true),
    'userName'    =>array('type'=>'comp-text','name'=>'userName','title'=>'用户名','clearable'=>true),
    'name'        =>array('type'=>'comp-text','name'=>'name','title'=>'姓名','clearable'=>true),
    'color'       =>array('type'=>'comp-text','name'=>'color','title'=>'颜色','clearable'=>true),
    'pihao'       =>array('type'=>'comp-text','name'=>'pihao','title'=>'批号','clearable'=>true),
    'barCode'     =>array('type'=>'comp-text','name'=>'barCode','title'=>'条码','clearable'=>true),
    'barCode2'    =>array('type'=>'comp-text','name'=>'barCode2','title'=>'条码','clearable'=>true,'placeholder'=>'精确匹配'),
    'purpose'     =>array('type'=>'comp-text','name'=>'purpose','title'=>'用途','clearable'=>true),
    'proDesc'     =>array('type'=>'comp-text','name'=>'proDesc','title'=>'花型颜色','clearable'=>true),
    'phone'       =>array('type'=>'comp-text','name'=>'phone','title'=>'手机号','clearable'=>true),
    'orderCode'   =>array('type'=>'comp-text','name'=>'orderCode','title'=>'订单号','clearable'=>true),
    'clientOrder' =>array('type'=>'comp-text','name'=>'clientOrder','title'=>'客户合同号','clearable'=>true),
    'fapiaoCode'  =>array('type'=>'comp-text','name'=>'fapiaoCode','title'=>'发票号','clearable'=>true),
    'fapiaoType'  =>array('type'=>'comp-text','name'=>'fapiaoType','title'=>'发票类型','clearable'=>true),
    'reason'      =>array('type'=>'comp-text','name'=>'reason','title'=>'原因','clearable'=>true),
    'itemName'    =>array('type'=>'comp-text','name'=>'itemName','title'=>'科目名称','clearable'=>true),
    'primaryKey'  =>array('type'=>'comp-text','name'=>'primaryKey','title'=>'主键值','clearable'=>true),
    'logcontent'  =>array('type'=>'comp-text','name'=>'logcontent','title'=>'日志内容','clearable'=>true),
    'planCode'    =>array('type'=>'comp-text','name'=>'planCode','title'=>'计划单号','clearable'=>true),
    'proCode'     =>array('type'=>'comp-text','name'=>'proCode','title'=>'产品编号','clearable'=>true),
    'proName'     =>array('type'=>'comp-text','name'=>'proName','title'=>'产品名称','clearable'=>true),
    'gexing'     =>array('type'=>'comp-text','name'=>'gexing','title'=>'格型','clearable'=>true),
    'zuzhi'     =>array('type'=>'comp-text','name'=>'zuzhi','title'=>'组织','clearable'=>true),
    'tanli'     =>array('type'=>'comp-text','name'=>'tanli','title'=>'弹力','clearable'=>true),
    'traderId' =>array(
        'type'       =>'comp-select',
        'name'       =>'traderId',
        'title'      =>'选择业务员',
        'clearable'  =>true,
        'funcName'   =>'Model_Jichu_Employ@getSelect',
        'filterable' =>true,
        'multiple'   =>true
    ),//filterable表示是否支持搜索，效果select2，funcName表示数据方法来源，return的data需要有text和value数据,multiple表示多选
    'dateFrom' =>array('type'=>'comp-calendar','name'=>'dateFrom','title'=>'起始日期','clearable'=>true),
    'dateTo'   =>array('type'=>'comp-calendar','name'=>'dateTo','title'=>'截至日期','clearable'=>true),
    'dateRange'=>array('type'=>'comp-calendar','name'=>'dateRange','title'=>'选择日期','clearable'=>true,'ctype'=>'daterange','shortcutOptions'=>true),
    'isSample'  =>array('type'=>'comp-select','name'=>'isSample','title'=>'上/下架','options'=>array(
        array('text'=>'全部','value'=>''),
        array('text'=>'上架','value'=>'1'),
        array('text'=>'下架','value'=>'0'),
    )),
    'api_type'  =>array('type'=>'comp-select','name'=>'api_type','title'=>'接口类型','options'=>array(
        array('text'=>'全部','value'=>''),
        array('text'=>'响应接口','value'=>'response'),
        array('text'=>'请求接口','value'=>'request'),
    )),
    'hzlId' =>array(
        'type'       =>'comp-select',
        'name'       =>'hzlId',
        'title'      =>'后整理工艺',
        'clearable'  =>true,
        'funcName'   =>'Model_Jichu_Gongyi@getOptions',
        'filterable' =>true,
        'multiple'   =>false
    ),
    'api_version' =>array(
        'type'       =>'comp-select',
        'name'       =>'api_version',
        'title'      =>'接口版本号',
        'clearable'  =>true,
        'funcName'   =>'Model_Api_Logs@getVersion',
        'filterable' =>true,
        // 'multiple'   =>true
    ),
    'log_status' =>array(
        'type'       =>'comp-select',
        'name'       =>'log_status',
        'title'      =>'接口状态',
        'clearable'  =>true,
        'funcName'   =>'Model_Api_Logs@getLogStatus',
        'filterable' =>true,
        // 'multiple'   =>true
    ),
    'isOver'  =>array('type'=>'comp-select','name'=>'isOver','title'=>'是否完成','options'=>array(
        array('text'=>'全部','value'=>''),
        array('text'=>'已完成','value'=>'1'),
        array('text'=>'未完成','value'=>'0'),
    )),
    'haveKc'  =>array('type'=>'comp-select','name'=>'haveKc','title'=>'是否有库存','options'=>array(
        array('text'=>'全部','value'=>''),
        array('text'=>'仅看有库存','value'=>'kucun'),
        array('text'=>'仅看本期入库','value'=>'ruku'),
        array('text'=>'仅看本期出库','value'=>'chuku'),
    )),
    'isShenhe'  =>array('type'=>'comp-select','name'=>'isShenhe','title'=>'是否审核','options'=>array(
        array('text'=>'全部','value'=>''),
        array('text'=>'未审核','value'=>'NULL'),
        array('text'=>'通过','value'=>'yes'),
        array('text'=>'不通过','value'=>'no'),
    )),
    'isFire'  =>array('type'=>'comp-select','name'=>'isFire','title'=>'是否离职','options'=>array(
        array('text'=>'全部','value'=>''),
        array('text'=>'已离职','value'=>'1'),
        array('text'=>'未离职','value'=>'0'),
    )),
    'isChuku'  =>array('type'=>'comp-select','name'=>'isChuku','title'=>'是否已出库','options'=>array(
        array('text'=>'全部','value'=>''),
        array('text'=>'已出库','value'=>'yes'),
        array('text'=>'未出库','value'=>'no'),
    )),
    'productId'=>array(
        'type'=>'comp-popup-select',
        'name'=>'productId',
        'title'=>'选择产品',
        'clearable'=>true,
        'action'=>'?controller=Jichu_Product&action=ListPro',
        'rowKey'=>'id',
        'displayKey'=>'proName',
        'width'=>'70%',
        'displayText'=>''
    ),
    // 'productId'=>array(
    //     'type'       =>'comp-select',
    //     'name'       =>'productId',
    //     'title'      =>'选择产品',
    //     'funcName'   =>'Model_Jichu_Product@getOptionsSelect',
    //     'clearable'  =>true,
    //     'filterable' =>true,
    // ),
    'materialId'=>array(
        'type'        =>'comp-popup-select',
        'name'        =>'materialId',
        'title'       =>'选择物料',
        'clearable'   =>true,
        'action'      =>'?controller=Jichu_Material&action=ListPro',
        'rowKey'      =>'id',
        'displayKey'  =>'proName',
        'displayText' =>''
    ),
    'depId' =>array(
        'type'       =>'comp-select',
        'name'       =>'depId',
        'title'      =>'选择部门',
        'clearable'  =>true,
        'funcName'   =>'Model_Jichu_Department@getDepartment',
        'filterable' =>true,
        // 'multiple'   =>true,
        'disableBus' =>true,
    ),
    'type' =>array(
        'type'       =>'comp-select',
        'name'       =>'type',
        'title'      =>'样品类型',
        'clearable'  =>true,
        'funcName'   =>'Model_Sample_Ruku@getTypeSelect',
        'filterable' =>true,
        'multiple'   =>true,
        'disableBus' =>true,
    ),
    'clientId' =>array(
        'type'       =>'comp-select',
        'name'       =>'clientId',
        'title'      =>'选择客户',
        'clearable'  =>true,
        'funcName'   =>'Model_Jichu_Client@getOptions',
        'filterable' =>true,
        'multiple'   =>true,
        'disableBus' =>true,
    ),
    'kuweiId' =>array(
        'type'       =>'comp-select',
        'name'       =>'kuweiId',
        'title'      =>'库位',
        'clearable'  =>true,
        'funcName'   =>'Model_Jichu_Kuwei@getOptions',
        'filterable' =>true,
        'multiple'   =>true,
        'disableBus' =>true,
    ),
    'bankId' =>array(
        'type'       =>'comp-select',
        'name'       =>'bankId',
        'title'      =>'银行账户',
        'clearable'  =>true,
        'funcName'   =>'Model_Jichu_Bank@getOptions',
        'filterable' =>true,
        'multiple'   =>true,
        'disableBus' =>true,
    ),
    'createrId' =>array(
        'type'       =>'comp-select',
        'name'       =>'createrId',
        'title'      =>'制单人',
        'clearable'  =>true,
        'funcName'   =>'Model_Jichu_Employ@getEmploy',
        'filterable' =>true,
        'multiple'   =>true,
        'disableBus' =>true,
    ),
    'employId' =>array(
        'type'       =>'comp-select',
        'name'       =>'employId',
        'title'      =>'选择员工',
        'clearable'  =>true,
        'funcName'   =>'Model_Jichu_Employ@getEmploy',
        'filterable' =>true,
        'multiple'   =>true,
        'disableBus' =>true,
    ),
    'kindId' =>array(
        'type'       =>'comp-select',
        'name'       =>'kindId',
        'title'      =>'产品类别',
        'clearable'  =>true,
        'funcName'   =>'Model_Jichu_ProKind@getOptions',
        'filterable' =>true,
        'multiple'   =>true,
        'disableBus' =>true,
        'value'      =>array(),
    ),
    'ImageFile' =>array(
        'type'         =>'comp-image-phone-pull',
        'name'         =>'ImageFile',
        'title'        =>'拍照上传',
        'value'        =>'',
        'limit'        =>1,//最大允许上传个数
        'action'       =>$this->_url('UploadImageTmp'),
        'actionRemove' =>$this->_url('RemoveImageTmp'),//删除图片时需要从服务器删除,可以不定义
    ),
    'dateYear' =>array(
        'type'       =>'comp-select',
        'name'       =>'dateYear',
        'title'      =>'年',
        'funcName'   =>'TMIS_Common@getYear',
        'clearable'  =>false,
        'disableBus' =>true,
    ),
);